﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Default3 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
    }

    protected void btnAdd_Click(object sender, EventArgs e)
    {
        CustomDataService.CustomDataWebService service = new CustomDataService.CustomDataWebService();
        CustomDataService.Address address = service.GetAddress(txtStreet.Text, txtCity.Text,
                                                               Convert.ToInt32(txtZIP.Text), txtCountry.Text);

        lblResult.Text = address.Street + ", " + address.City + ", " + address.ZIP + ", " + address.Country;
    }
}